<div class="blazorise-codeblock">
<div class="html"><pre>
// other usings
using Blazorise;
using Blazorise.Bootstrap;
using Blazorise.Icons.FontAwesome;

public class Startup
{
  public void ConfigureServices( IServiceCollection services )
  {
    services
      .AddBlazorise( options =&gt;
      {
        options.ChangeTextOnKeyPress = true; // optional
      } )
      .AddBootstrapProviders()
      .AddFontAwesomeIcons();

    // other services
  }

  public void Configure( IComponentsApplicationBuilder app )
  {
    // other settings
    
    app.UseRouting();
    
    app.UseEndpoints( endpoints =&gt;
    {
        endpoints.MapBlazorHub();
        endpoints.MapFallbackToPage( &quot;/_Host&quot; );
    } );
  }
}
</pre></div>
</div>
